package 作业1;

import java.util.Scanner;
public class Code1 {
    public int searchMax(int[] a) {
        int max = 0;
        for (int i = 1; i < a.length; i++) {
            if (a[max] < a[i])
                a[max] = a[i];
        }
        return a[max];
    }
    public static void main(String[] args) {
        Scanner re = new Scanner(System.in);
        int[] a = new int[10];
        for (int i = 0; i < a.length; i++) {
            a[i] = re.nextInt();
        }
        Code1 e = new Code1();
        System.out.println(e.searchMax(a));
    }
}

